from django.conf.urls.defaults import *

# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('bouting.views',
    (r'^bouting/$', 'index'),
    (r'^bouting/personList/$', 'personList'),
    (r'^bouting/(?P<person_id>\d+)/$', 'detail'),
    (r'^bouting/createPerson/$', 'createPerson'),
    (r'^bouting/(?P<person_id>\d+)/editPerson/$', 'editPerson'),
    (r'^bouting/(?P<tournament_id>\d+)/(?P<event_id>\d+)/(?P<person_id>\d+)/editPerson/$', 'editPerson'),
    (r'^bouting/clubList/$', 'clubList'),
    (r'^bouting/myClubList/$', 'myClubList'),
    (r'^bouting/(?P<club_id>\d+)/clubDetail/$', 'clubDetail'),
    (r'^bouting/(?P<club_id>\d+)/editClub/$', 'editClub'),
    (r'^bouting/(?P<club_id>\d+)/deleteClub/$', 'deleteClub'),
    (r'^bouting/createClub/$', 'createClub'),
    (r'^bouting/myTournamentList/$', 'myTournamentList'),
    (r'^bouting/tournamentList/$', 'tournamentList'),
    (r'^bouting/createTournament/$', 'createTournament'),
    (r'^bouting/(?P<tournament_id>\d+)/editTournament/$', 'editTournament'),
    (r'^bouting/(?P<tournament_id>\d+)/tournamentDetail/$', 'tournamentDetail'),
    (r'^bouting/(?P<tournament_id>\d+)/deleteTournament/$', 'deleteTournament'),
    #(r'^bouting/createTournament_Failure/$', 'createTournament_Failure'),
    (r'^bouting/(?P<tournament_id>\d+)/(?P<event_id>\d+)/(?P<round_id>\d+)/initialSeeding/$', 'initialSeeding'),
    (r'^bouting/(?P<tournament_id>\d+)/createEvent/$', 'createEvent'),
    #(r'^bouting/(?P<tournament_id>\d+)/createEvent_Response/$', 'createEvent_Response'),
    #(r'^bouting/(?P<tournament_id>\d+)/createEvent_Success/$', 'createEvent_Success'),
    (r'^bouting/(?P<tournament_id>\d+)/(?P<event_id>\d+)/editEvent/$', 'editEvent'),
    (r'^bouting/(?P<tournament_id>\d+)/(?P<event_id>\d+)/advanceRounds/$', 'advanceRounds'),
    (r'^bouting/(?P<tournament_id>\d+)/(?P<event_id>\d+)/confirmEntrants/$', 'confirmEntrants'),
    #(r'^bouting/(?P<tournament_id>\d+)/(?P<event_id>\d+)/editEvent_Response/$', 'editEvent_Response'),
    (r'^bouting/(?P<tournament_id>\d+)/(?P<event_id>\d+)/deleteEvent/$', 'deleteEvent'),
    (r'^bouting/(?P<tournament_id>\d+)/(?P<event_id>\d+)/createRef/$', 'createRef'),
    (r'^bouting/(?P<tournament_id>\d+)/(?P<event_id>\d+)/(?P<referee_id>\d+)/deleteRef/$', 'deleteRef'),
    (r'^bouting/(?P<tournament_id>\d+)/(?P<event_id>\d+)/createEntrant/$', 'createEntrant'),
    (r'^bouting/(?P<tournament_id>\d+)/(?P<event_id>\d+)/(?P<entrant_id>\d+)/deleteEntrant/$', 'deleteEntrant'),
    #(r'^bouting/(?P<tournament_id>\d+)/(?P<event_id>\d+)/editEvent_Success/$', 'editEvent_Success'),
    (r'^bouting/(?P<tournament_id>\d+)/(?P<event_id>\d+)/(?P<roundNum>\d+)/poolOptions/$', 'poolOptions'),
    (r'^bouting/(?P<tournament_id>\d+)/(?P<event_id>\d+)/(?P<round_id>\d+)/generatePools/$', 'generatePools'),
    (r'^bouting/(?P<tournament_id>\d+)/(?P<event_id>\d+)/(?P<roundNum>\d+)/roundView/$', 'roundView'),
    (r'^bouting/(?P<tournament_id>\d+)/(?P<event_id>\d+)/(?P<roundNum>\d+)/prePool/$', 'prePool'),
    (r'^bouting/(?P<tournament_id>\d+)/(?P<event_id>\d+)/(?P<round_id>\d+)/beginFencing/$', 'beginFencing'),
    (r'^bouting/(?P<tournament_id>\d+)/(?P<event_id>\d+)/(?P<round_id>\d+)/prepareBouts/$', 'prepareBouts'),
    (r'^bouting/(?P<tournament_id>\d+)/(?P<event_id>\d+)/(?P<round_id>\d+)/poolView/$', 'poolView'),
    (r'^bouting/(?P<tournament_id>\d+)/(?P<event_id>\d+)/(?P<round_id>\d+)/deView/$', 'deView'),
    (r'^bouting/(?P<tournament_id>\d+)/(?P<event_id>\d+)/(?P<round_id>\d+)/editBout/$', 'editBout'),
    (r'^bouting/(?P<tournament_id>\d+)/(?P<event_id>\d+)/(?P<round_id>\d+)/roundResults/$', 'roundResults'),
    (r'^bouting/(?P<tournament_id>\d+)/tournamentView/$', 'tournamentView'),
    (r'^bouting/(?P<tournament_id>\d+)/(?P<event_id>\d+)/eventView/$', 'eventView'),
    (r'^bouting/signIn/$', 'signIn'),
    (r'^bouting/signOut/$', 'signOut'),
    (r'^bouting/signUp/$', 'signUp'),
    #(r'^bouting/register/$', 'register'),
    #(r'^bouting/(?P<poll_id>\d+)/results/$', 'bouting.views.results'),
    #(r'^bouting/(?P<poll_id>\d+)/vote/$', 'bouting.views.vote'),
    (r'^admin/', include(admin.site.urls)),
)
